#!/bin/bash

# 进入到目录，目录为第一个参数，新分支为第二个参数
if [ -z "$2" ]; then
	echo "Usage: $0 <Git Folder> <Branch Name>"
	exit 1
fi

cd "$1" || exit
git fetch origin
git rev-parse origin/"$2"